
#ifndef __HTML_PAGE_MGR_H__
#define __HTML_PAGE_MGR_H__

#include "html_page.h"
//class CHtmlPage;

#include <deque>
using std::deque;


class CHtmlPageManager
{
public:
	CHtmlPageManager()
	{

	}

	~CHtmlPageManager()
	{



	}


	template<class T>
	static CHtmlPage* CreatePage()
	{
		return new T;
	}

	void AddPage(CHtmlPage* pHtmlPage)
	{
		m_history.push_back( pHtmlPage );
	}

	void Clear()
	{
		typedef deque<CHtmlPage*>::iterator Auto;
		Auto i = m_history.begin();
		for (; m_history.end() != i; ++i)
		{
			delete *i;
		}
	}




private:
	deque<CHtmlPage*>		m_history;
};

#endif